package com.yunzo.coc.common.utils.rong.models;

import java.io.IOException;

import com.yunzo.coc.common.utils.JsonObjectUtil;



//自定义消息
public class CustomTxtMessage extends Message {

	private String content;

	public CustomTxtMessage(String content) {
		this.type = "KM:TxtMsg";
		this.content = content;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Override
	public String toString() {
		
		try {
			return JsonObjectUtil.bean2Json(this);
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		return null;
	}
}
